package loc_enum

// 区域-工程报备类型
type locEgnReportType int

var LocEgnReportType locEgnReportType

// 路线报备
func (c *locEgnReportType) RoadReport() int {
	return 1
}

// 工程报备
func (c *locEgnReportType) EgnReport() int {
	return 2
}

func (c *locEgnReportType) ToText(value int) string {
	switch value {

	case 1:
		return "路线报备"

	case 2:
		return "工程报备"

	}
	return ""
}

func (c *locEgnReportType) ToValue(text string) int {
	switch text {

	case "路线报备":
		return 1

	case "工程报备":
		return 2

	}
	return 0
}
